package meconsea.life.cms.accessor;

import java.util.List;

import meconsea.life.cms.entity.ZArticle;
import meconsea.life.sys.accessor.BaseAccessor;
import meconsea.life.sys.accessor.IAccessor;

import com.google.inject.name.Named;
import com.wideplay.warp.persist.dao.Finder;
import com.wideplay.warp.persist.dao.FirstResult;
import com.wideplay.warp.persist.dao.MaxResults;

public class ZArticleAccessor extends BaseAccessor<meconsea.life.cms.entity.ZArticle, String> implements
		IAccessor<ZArticle, String> {
	public ZArticleAccessor(){
		super(ZArticle.class);
	}

	@Finder(namedQuery = ZArticle.LIST_ART_CLASS)
	public List getArtByClass(@Named("artClass") String artClass, @FirstResult int first , @MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = ZArticle.LIST_ART_CLASS_PATH)
	public List getArtByClassPath(@Named("artClassPath") String artClassPath, @FirstResult int first , @MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = ZArticle.LIST_ART_CLICKS)
	public List getArtByClicks(@FirstResult int first , @MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = ZArticle.LIST_ART_COMMEND)
	public List getArtByCommend(@Named("commend") int commend,@FirstResult int first,@MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = ZArticle.LIST_ART_HOT)
	public List getArtByHot(@Named("hot") int hot,@FirstResult int first,@MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = ZArticle.LIST_ART_NEW)
	public List getArtNew(@FirstResult int first,@MaxResults int max){
		return null;
	}
	@Finder(namedQuery = ZArticle.LIST_ART_KEYWORDS)
	public List getArtByKeywords(@Named("keywords") String keywords, @FirstResult int first, @MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = ZArticle.LIST_ART_TITLE_LIKE)
	public List getArtByTitle(@Named("title") String title,@FirstResult int first,@MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = ZArticle.LIST_ART_CLASS_ALL)
	public List getArtByClsAll(@Named("artClass") String artClass,@FirstResult int first,@MaxResults int max){
		return null;
	}
	
	@Finder(namedQuery = ZArticle.COUNT_ART_CLASS)
	public int getCountByCls(@Named("artClass") String artClass){
		return 0;
	}
	
	@Finder(namedQuery = ZArticle.HEADER_ART_CLASS)
	public List<ZArticle> getHeaderArt(@Named("isHeader") Integer isHeader,@FirstResult int first,@MaxResults int max){
		return null;
	}
}
